package Thread;

public class Demo7 {
    public static void main(String[] args) throws InterruptedException {
        Object obj=new Object();
        System.out.println("wait之前");
        synchronized (obj){
            obj.wait();
        }
        System.out.println("wait之后");

    }
}
